From: Florian Müllner Date: Fri, 18 Jun 2021 21:15:05 +0000 (+0200) Subject: messageTray: Do not show low priority notifications X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~574^2^2~79 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0b8514dc7d075f4fd6682da7037af405d9cc97ba;p=gnome-shell.git messageTray: Do not show low priority notifications Low priority notifications are meant for information that doesn't require immediate attention, so it makes sense to not show a banner for them; they'll still appear in the notification list in the calendar. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4265 Part-of: --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 654bada6b..8a5c262a9 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -771,6 +771,9 @@ var Source = GObject.registerClass({ notification.acknowledged = false; this.pushNotification(notification); + if (notification.urgency === Urgency.LOW) + return; + if (this.policy.showBanners || notification.urgency == Urgency.CRITICAL) this.emit('notification-show', notification); }